<#import "/spring.ftl" as spring />
<#import "/inspector-time-macros.ftl" as imacro />
<html>
<head>
	<link rel="stylesheet" type="text/css" href="<@spring.url "/content_pane.css" />" />
	<title>Remove Employee</title>
</head>
<body>
<div id="content">

	<h1>REMOVE EMPLOYEE</h1>

    <#if deletionError??>
      <div class="errors"><@spring.message deletionError /></div>
    </#if>

	<p>Are you sure you want to remove the following employee?</p>
	
	<p style="margin-left: 15px">
		${employee.name.first} ${employee.name.last}<br />
		${employee.email!}<br />
		${employee.cellPhone!}
	</p>
	
		
	<form method="post">
		<input type="hidden" name="id" value="${employee.id}" />
		<input type="submit" value="REMOVE EMPLOYEE" class="formButton"/>
		
		<#if Request['org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping']?contains("deleteInspectorProfile") >
		  <a href="editInspectorProfile.html?id=${employee.id}" class="formLink">-CANCEL-</a>
		<#elseif Request['org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping']?contains("deleteSchedulerProfile") >
		  <a href="editSchedulerProfile.html?id=${employee.id}" class="formLink">-CANCEL-</a>
		<#else>
		  <a href="javascript:back();" class="formLink">-CANCEL-</a>
		</#if>
	</form>
	
	
</div>
</body>
</html>